<template>
	<view class="city">
		<first-nav></first-nav>
		<tab></tab>
		<city-content :currentCity="currentCity"></city-content>
	</view>
</template>

<script>
	import tab from "../../components/tab.vue";
	import firstNav from "../../components/first-nav.vue";
	import cityContent from "../../components/cityContent.vue"
	export default {
		components:{
			tab,
			firstNav,
			cityContent
		},
		data() {
			return {
				currentCity:'北京'
			}
		},
		methods: {
			
		},
		onShow() {
			let that = this;
			uni.getStorage({
				key:'city',
				success(res){
					that.currentCity= res.data;
				}
			})
		}
	}
</script>

<style>
.city{
	background-color: #000000;
	height: 100%;
	width: 100%;
}
</style>
